package com.alennus.blog.repository;


import com.alennus.blog.domain.AccountRole;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;


/**
 * Created by pactera on 2018/6/5.
 */
public interface AccountRoleRepository extends MongoRepository<AccountRole,String>{


    AccountRole getAccountRoleByRoleIdAndAccountId(String roleId,String accountId);
    List<AccountRole> findByAccountId(String accountId);

    void deleteByAccountId(String accountId);
}
